/**
 * @filename:PurchaseOrderService Mar 11, 2024
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import cn.hutool.json.JSONObject;
import com.wonder.app.domain.PurchaseOrder;
import com.wonder.app.request.PurchaseOrderRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Map;
/**   
 * @Description:TODO(采购订单服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface PurchaseOrderService extends IService<PurchaseOrder> {

    
    /**
     * 验证采购订单信息
     * 
     * @param purchaseOrder
     * @param type
     * @return 结果
     */
    public String validate(PurchaseOrder purchaseOrder,String type);   
   
	
	 /**
	 * Description:采购订单分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<PurchaseOrder>   //分页记录
	 */
    public IPage<PurchaseOrder> selectList(PurchaseOrderRequest request, Page<PurchaseOrder> page);


	/**
	 * 同步金蝶采购订单
	 * @param
	 * @return
	 */
	public void syncPurchaseOrder(String endTime) throws Exception;

	/**
	 * 获取采购订单详情
	 * @param billNo
	 * @return
	 */
	public Map<String, Object> getDetail(String billNo);

	/**
	 * 获取采购订单列表包含详情(pad)
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	Map<String, Object> getPurOrderList(int pageIndex, int pageSize,String billNo);
}
